/*
    Theme Name: Our World In Data
    Theme URI: https://ourworldindata.org;
    Description: A responsive custom theme for Our World In Data
    Author: Jaiden Mispy
    Author URI: https://ourworldindata.org

    Version: 1.2

    Tags: responsive layout

    License: MIT
    License URI: https://opensource.org/licenses/MIT
*/

@import "normalize.css";
@import "../public/fonts.css";

@import "tippy.js/dist/tippy.css";
@import "tippy.js/themes/light.css";

@import "../packages/@ourworldindata/components/src/styles/variables.scss";
@import "../packages/@ourworldindata/components/src/styles/colors.scss";
@import "../packages/@ourworldindata/components/src/styles/typography.scss";
@import "../packages/@ourworldindata/components/src/styles/util.scss";
@import "../packages/@ourworldindata/components/src/styles/mixins.scss";

@import "../packages/@ourworldindata/components/src/LabeledSwitch/LabeledSwitch.scss";
@import "../packages/@ourworldindata/components/src/CodeSnippet/code-snippet.scss";
@import "../packages/@ourworldindata/components/src/ExpandableToggle/ExpandableToggle.scss";
@import "../packages/@ourworldindata/components/src/IndicatorSources/IndicatorSources.scss";
@import "../packages/@ourworldindata/components/src/IndicatorProcessing/IndicatorProcessing.scss";
@import "../packages/@ourworldindata/components/src/Button/Button.scss";
@import "../packages/@ourworldindata/components/src/TextInput.scss";
@import "../packages/@ourworldindata/components/src/GrapherTrendArrow.scss";

@import "../packages/@ourworldindata/explorer/src/Explorer.scss";
@import "../packages/@ourworldindata/explorer/src/ExplorerControls.scss";

@import "css/grid.scss";
@import "css/grid-margin-overrides.scss";
@import "css/layout.scss";
@import "css/general.scss";
@import "css/noscript.scss";
@import "./ExplorerIndexPage.scss";
@import "./SubscribePage.scss";
@import "./LatestPage.scss";
@import "./NewsletterSignupBlock.scss";
@import "./Pagination.scss";
@import "./collections/CollectionsPage.scss";
@import "./SiteSearchNavigation.scss";
@import "./search/Search.scss";
@import "./search/SearchCountrySelector.scss";
@import "./search/SearchDataResults.scss";
@import "./search/SearchDataTopic.scss";
@import "./search/Autocomplete.scss";
@import "./search/SearchTopicsRefinementList.scss";
@import "./search/SearchHorizontalDivider.scss";
@import "./search/SearchChartHitCaptionedLink.scss";
@import "./search/SearchChartHitHeader.scss";
@import "./search/SearchChartHitThumbnail.scss";
@import "./search/SearchChartHitRichData.scss";
@import "./search/SearchChartHitSmall.scss";
@import "./search/SearchChartHitDataDisplay.scss";
@import "./search/SearchChartHitDataTable.scss";
@import "./search/SearchActiveFilters.scss";
@import "./search/SearchFilterPill.scss";
@import "./search/SearchAutocompleteItemContents.scss";
@import "./search/SearchAutocomplete.scss";
@import "./search/SearchResultTypeToggle.scss";
@import "./search/SearchDataInsightsResults.scss";
@import "./search/SearchDataInsightHit.scss";
@import "./search/SearchWritingTopicsResults.scss";
@import "./search/SearchWritingTopic.scss";
@import "./search/SearchWritingResults.scss";
@import "./search/SearchFlatArticleHit.scss";
@import "./search/SearchStackedArticleHit.scss";
@import "./search/SearchTopicPageHit.scss";
@import "./search/SearchResultHeader.scss";
@import "./search/SearchNoResults.scss";
@import "./search/SearchDetectedFilters.scss";
@import "./search/skeletons.scss";
@import "./search/SearchResultHeaderSkeleton.scss";
@import "./search/SearchWritingResultsSkeleton.scss";
@import "./search/SearchDataInsightsResultsSkeleton.scss";
@import "./search/SearchDataTopicsResultsSkeleton.scss";
@import "./search/SearchWritingTopicsResultsSkeleton.scss";
@import "./SiteLogos.scss";
@import "./SiteNavigation.scss";
@import "./SiteNavigationToggle.scss";
@import "./SiteNavigationTopics.scss";
@import "./SiteSubnavigation.scss";
@import "./SiteMobileMenu.scss";
@import "./SiteMobileArea.scss";
@import "./OwidSocials.scss";
@import "css/footer.scss";
@import "css/content.scss";
@import "css/forms.scss";
@import "css/page.scss";
@import "css/sidebar.scss";

@import "./archive/ArchiveNavigation.scss";
@import "./archive/VersionsDrawer.scss";

@import "css/faq.scss";
@import "css/covid.scss";
@import "css/chart.scss";

@import "css/cookie-notice.scss";
@import "css/site-tools.scss";
@import "css/newsletter-subscription.scss";
@import "css/lightbox.scss";
@import "css/alert-banner.scss";

@import "./blocks/front-matter.scss";
@import "./blocks/expandable-paragraph.scss";
@import "./blocks/prominent-link.scss";
@import "./blocks/related-charts.scss";
@import "./blocks/help.scss";
@import "./blocks/CookiePreferences.scss";
@import "./blocks/Grid.scss";
@import "./blocks/Card.scss";
@import "./blocks/BiographyCard.scss";
@import "./blocks/research-and-writing.scss";
@import "./blocks/GalleryArrow.scss";
@import "./blocks/StickyNav.scss";
@import "./Breadcrumb/Breadcrumb.scss";
@import "./gdocs/components/centered-article.scss";
@import "./gdocs/components/topic-page.scss";
@import "./gdocs/components/Callout.scss";
@import "./gdocs/components/ChartPreview.scss";
@import "./gdocs/components/DataInsightDateline.scss";
@import "./gdocs/components/DataInsightsNewsletter.scss";
@import "./gdocs/components/Donors.scss";
@import "./gdocs/components/GuidedChart.scss";
@import "./gdocs/components/Image.scss";
@import "./gdocs/components/StaticVizDownload.scss";
@import "./gdocs/components/LatestDataInsights.scss";
@import "./gdocs/components/LatestDataInsightsBlock.scss";
@import "./gdocs/components/LinkedAuthor.scss";
@import "./gdocs/components/SDGGrid.scss";
@import "./gdocs/components/TableOfContents.scss";
@import "./gdocs/components/LTPTableOfContents.scss";
@import "./gdocs/components/MissingData.scss";
@import "./gdocs/components/HomepageIntro.scss";
@import "./gdocs/components/HybridLinkList.scss";
@import "./gdocs/components/KeyInsights.scss";
@import "./gdocs/components/ExploreDataSection.scss";
@import "./gdocs/components/AllCharts.scss";
@import "./FeaturedMetrics.scss";
@import "./FeaturedDataInsights.scss";
@import "./gdocs/components/AdditionalCharts.scss";
@import "./gdocs/components/Recirc.scss";
@import "./gdocs/components/SubscribeBanner.scss";
@import "./gdocs/components/ResourcePanel.scss";
@import "./gdocs/components/ResearchAndWriting.scss";
@import "./gdocs/components/Chart.scss";
@import "./gdocs/components/Expander.scss";
@import "./gdocs/components/ExplorerTiles.scss";
@import "./gdocs/components/KeyIndicator.scss";
@import "./gdocs/components/KeyIndicatorCollection.scss";
@import "./gdocs/components/PullQuote.scss";
@import "./gdocs/components/PillRow.scss";
@import "./gdocs/components/People.scss";
@import "./gdocs/components/Person.scss";
@import "./gdocs/components/Socials.scss";
@import "./AboutThisData.scss";
@import "./DataPage.scss";
@import "./DataPageContent.scss";
@import "./multiDim/MultiDim.scss";
@import "./multiDim/MultiDimDataPageContent.scss";
@import "./multiDim/DimensionDropdown.scss";
@import "./multiDim/MultiDimDropdowns.scss";
@import "./multiDim/MultiDimDataPageSettingsPanel.scss";
@import "./multiDim/MultiDimEmbedSettingsPanel.scss";
@import "./GrapherImage.scss";
@import "./KeyDataTable.scss";
@import "./MetadataSection.scss";
@import "./TopicTags.scss";
@import "./detailsOnDemand.scss";

@import "./gdocs/pages/DataInsight.scss";
@import "./gdocs/pages/Homepage.scss";
@import "./gdocs/pages/Author.scss";
@import "./gdocs/pages/AboutPage.scss";
@import "./gdocs/pages/Announcement.scss";

@import "css/donate.scss";
@import "./ThankYouPage.scss";

// Remove default Webkit search cancel button.
// https://stackoverflow.com/a/77190241/9846837
[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* HACK (Mispy): Fix search autozooming on iPhone Safari.
http://stackoverflow.com/questions/2989263/disable-auto-zoom-in-input-text-tag-safari-on-iphone */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Focus indicator
--------------------------------------------- */
// Override normalize.css on Firefox
button:-moz-focusring,
[type="button"]::-moz-focus-inner {
    outline: 2px solid $blue-60;
}

*:focus-visible,
[type="button"]:focus-visible {
    outline: 2px solid $blue-60;
    outline-offset: 2px;
}

main {
    min-height: 500px;
}

.deep-link {
    display: inline-block;
    width: 28px;
    height: 20px;
    font-size: 16px;
    background: url("")
        no-repeat left;
    background-size: contain;
    opacity: 0;
    vertical-align: middle;
    transition: opacity 100ms linear;

    &:hover {
        background: url("")
            no-repeat left;
        background-size: contain;
    }
    &:focus {
        opacity: 1;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    // Avoid wrapping the deep-link to the next line as an orphan. Using &nbsp;
    // doesn't work and programmatically wrapping the last word and the
    // deep-link in a span with text-wrap: nowrap would be an even bigger hack.
    &:has(.deep-link) {
        // Pick the second-to-last child, since the heading can have multiple
        // elements as children and the last child is the deep-link.
        > *:nth-last-child(2) {
            padding-right: 2rem;

            // On touch devices, the deep-link is hidden, so we don't need the
            // padding to make space for it.
            @include touch-device {
                padding-right: 0;
            }
        }
    }

    .deep-link {
        // Margin is a bit smaller than the padding on the preceding element to
        // add a bit of space between them.
        margin-left: -1.5rem;

        @include touch-device {
            // It's not visible because of the opacity anyway, but it can add
            // enough vertical space to cause the heading to wrap to the next
            // line. Hide it instead, so the heading can use as much space as
            // possible.
            display: none;
        }
    }

    &:hover {
        .deep-link {
            opacity: 1;
        }
    }
}

.heading-latest {
    font-family: $serif-font-stack;
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 2 * $vertical-spacing;
}

.heading-latest__subtitle {
    display: block;
    margin-top: 8px;
    @include body-2-regular;
    color: $blue-60;

    @include md-up {
        @include body-1-regular;
    }
}

.article-footer a {
    @include owid-link-90;
}

/* Header
--------------------------------------------- */
.site-header {
    position: relative;
    // Must be specified for the header (and its sub-elements, e.g. topics menu)
    // to be on top of the sticky nav, charts and global entity selector, while
    // allowing (DoD) tooltips to be on top of the header
    z-index: $zindex-site-header;
}

/* Teaching Page
--------------------------------------------- */

.teaching-hub {
    .columns {
        margin-bottom: 1.5rem;

        .column {
            display: inline-block;
            margin: 0 0.6rem 0.6rem 0;
        }

        @media screen and (max-width: 640px) {
            .column {
                display: block;
            }
        }
    }

    .button {
        background-color: #3a4c71;
        color: white;
        padding: 0.75rem 1.4rem;
        text-align: center;
        line-height: 1.2;
        display: block;

        &:hover {
            text-decoration: none;
            background-color: #4b5c7e;
            color: white;
        }

        &:visited {
            color: white;
        }

        &.primary-button {
            background-color: #b62300;

            &:hover {
                background-color: #bb4122;
            }
        }

        .label {
            font-weight: bold;
            margin-bottom: 0.3rem;
        }

        .note {
            font-size: 68.75%;
            text-transform: uppercase;
            letter-spacing: 0.04rem;
            opacity: 0.6;
        }

        span {
            display: block;
        }

        &::selection {
            background: transparent;
        }
    }

    .authors-byline {
        display: none;
    }
}

/* Pages & Posts
--------------------------------------------- */

.article-content > section:not(:first-of-type) {
    margin-top: 60px;
    padding-top: 30px;
}

.article-content > section {
    /* The CSS here is very precise so as not to interfere with any iframeless embeds */

    > p {
        @include body-2-regular;
    }

    /* Subsections e.g. I.1 Historical perspective */
    > h3 {
        @include h3-style;
        margin-top: 5rem;
        margin-bottom: 2.5rem;
        padding-top: 2.5rem;
        border-top: 1px solid $blue-20;
    }

    // e.g. see "Sector by sector: where do global greenhouse gas emissions come from?"
    .wp-block-column > h3 {
        @include h3-style;
        margin-bottom: 1.5rem;
        margin-top: 2.5rem;
    }

    > .section-heading + h3 {
        border-top: none;
        padding-top: 0;
    }

    /* Intratext headings e.g. How different are countries in terms of central government involvement in the economy? */
    .wp-block-columns h4 {
        @include h4-style;
        margin-top: 2.75rem;
        margin-bottom: $vertical-spacing;
    }

    .wp-block-columns h5 {
        font-family: $serif-font-stack;
        font-weight: 400;
        font-size: 1.2rem;
        line-height: 1.2;
        margin: 2 * $vertical-spacing 0 $vertical-spacing;

        @include sm-only {
            font-size: 1rem;
        }
    }

    /* Image captions */
    figcaption {
        text-align: center;
    }

    blockquote {
        font-style: italic;
    }
}

/* Major sections e.g. I. Empirical View */
.article-content .section-heading {
    .wrapper {
        @include content-wrapper;
    }
    @include full-width;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
    @include md-up {
        padding-top: 4 * $vertical-spacing;
        padding-bottom: 4 * $vertical-spacing;
        margin-bottom: 5rem;
    }
    background-color: $blue-20;

    @include xxlg-up {
        width: calc(100vw - #{2 * $padding-x-md});
        margin-left: calc(50% - 50vw - #{$padding-x-md});
    }

    h2 {
        margin: 0;
        font-family: $serif-font-stack;
        font-size: 2.5rem;
        @include md-up {
            font-size: 3rem;
        }
        font-weight: 400;
        line-height: 1.25em;
    }

    .in-this-section {
        display: flex;
        align-items: center;
        margin: 1.5 * $vertical-spacing 0 $vertical-spacing;
        @include md-up {
            margin-top: 2 * $vertical-spacing;
        }
        text-transform: uppercase;
        font-size: 0.9rem;
        font-weight: bold;
        color: $blue-40;
        .border {
            margin-left: 1rem;
            background-color: $blue-30;
            height: 0.7em;
            flex: 1;
        }
    }

    ul {
        margin-bottom: 0;
        list-style: none;
        padding: 0;
        font-size: 0.9rem;
    }
    li {
        line-height: 1.2;
        margin-bottom: $vertical-spacing * 0.5;
    }

    a {
        color: $blue-100;
        &:hover svg {
            color: inherit;
        }
    }
    svg {
        color: $blue-40;
        margin-right: 0.5rem;
    }
}

.with-sidebar .section-heading {
    @include xxlg-up {
        position: relative;
        width: calc(100vw - $sidebar-width);
        margin-left: 0;
        left: min(
            calc((100vw - 100% - $sidebar-width) / -2),
            calc(-1 * $padding-x-md)
        );
    }
}

hr {
    color: $blue-20;
    border-bottom: none;
    border-left: none;
    border-right: none;
    padding-bottom: 8px;
    border-top: 1px;
    border-top-style: solid;
    margin-bottom: 0;
}

.article-footer {
    font-size: 0.8em;
    line-height: 1.7em;
    margin-top: 40px;
    margin-bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
    padding-bottom: 48px;

    h3 {
        font-size: 15px;
        font-weight: 400;
        margin-top: 2em;
        margin-bottom: 0;
        color: rgba(0, 0, 0, 0.65);
    }

    ol.endnotes {
        margin-top: 1em;
        padding-bottom: 24px;
        border-bottom: 1px solid $blue-20;
    }

    ol.endnotes > li {
        margin-left: 20px;
        padding-left: 5px;
        margin-bottom: 1em;
        list-style-type: decimal;
        list-style-position: outside;
    }

    .citation {
        font-size: 11px;
        line-height: 15px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        padding-left: 18px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: rgba(0, 0, 0, 0.02);
        padding: 10px 18px;
        border-radius: 3px;
        color: rgba(150, 150, 150, 1);
        overflow: hidden;
        margin-top: -6px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

.article-content ol,
.article-content ul {
    margin-bottom: 30px;
    padding-left: 40px;
    font-weight: normal;
}

.article-content ul ul {
    margin-bottom: 0;
}

.article-content > p > ul > li {
    margin-bottom: 5px;
}

.article-content ol > li {
    margin-bottom: 10px;
}

.article-content iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ccc !important;
}

.article-content iframe[src*="grapher"] {
    border: none !important;
    width: 100%;
    max-width: $content-max-width;
}

/* HACK (Mispy): Solve an issue with inconsistent WP markup.
   Sometimes iframes are inside the same <p> element as their preceding text,
   sometimes not. */
iframe:not(:first-child) {
    margin-bottom: 1em;
}

@include sm-only {
    article.post {
        padding: $padding-x-sm;
    }

    .deep-link {
        width: 12px;
        height: 12px;
    }
}

/* Customizations to tooltip */

.tippy-box[data-theme~="owid-footnote"] {
    font-size: 87.5%;
    // Have a 1px "border" between the scrollbars and the tippy arrow, so that the arrow looks
    // connected to the box rather than the scrollbars (when they end up joining on the same side).
    padding: 1px;
    cursor: default;
    position: relative;

    $background-color: #000;
    $vertical-padding: 16px;
    $horizontal-padding: 19px;
    $border-radius: 4px;

    border-radius: $border-radius;
    background-color: $background-color;

    // Show shadows at top and bottom edge of footnote to give users
    // a hint that they can scroll.
    &:before,
    &:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: $vertical-padding;
        z-index: 2;
        pointer-events: none;
    }

    &:before {
        top: 0;
        background: linear-gradient(
            rgba($background-color, 1),
            rgba($background-color, 0)
        );
        border-radius: $border-radius $border-radius 0 0;
    }

    &:after {
        bottom: 0;
        background: linear-gradient(
            rgba($background-color, 0),
            rgba($background-color, 1)
        );
        border-radius: 0 0 $border-radius $border-radius;
    }

    &[data-placement^="top"] .tippy-arrow::before {
        border-top-color: #000;
    }
    &[data-placement^="bottom"] .tippy-arrow::before {
        border-bottom-color: #000;
    }
    &[data-placement^="left"] .tippy-arrow::before {
        border-left-color: #000;
    }
    &[data-placement^="right"] .tippy-arrow::before {
        border-right-color: #000;
    }

    a {
        background-image: none !important;
        padding-right: 0 !important;
        color: #75b7eb;

        &:hover {
            color: #75b7eb;
            text-decoration: underline;
        }
    }

    .tippy-content {
        max-height: 40vh;
        overflow: auto;
        padding: $vertical-padding $horizontal-padding;

        p {
            margin: 0;
            // Support for comments in references, and multiple references
            // sharing the same footnote
            & + p {
                margin-top: 1em;
            }
        }

        .article-block__text,
        .article-block__list,
        .article-block__html,
        .article-block__numbered-list {
            @include body-3-medium;
        }
    }
}

a.ref sup {
    padding-left: 0.5px;
    font-size: 120%; // emphasize footnote markers a bit
}

/* Printing
--------------------------------------------- */

.print-only {
    display: none !important;
}

@media print {
    .site-header,
    .alert-banner,
    .offset-subnavigation,
    .site-footer,
    .cookie-notice,
    .citation-note,
    .entry-sidebar,
    address,
    #wpadminbar,
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body,
    .article-content > p,
    .article-content > ol,
    .article-content > ul {
        font:
            12pt "Times New Roman",
            Times,
            serif;
        line-height: 1.3;
    }
    .article-content > h2,
    .article-content > h3,
    .article-content > h4,
    .article-content > h5,
    .article-content > h6 {
        page-break-after: avoid;
    }
    pre,
    blockquote {
        page-break-inside: avoid;
    }
}

.NotFoundPage {
    color: $blue-60;
    background-color: $gray-5;

    main {
        display: flex;
        flex-direction: column;
        padding: 0 16px;
        max-width: 628px;
        margin: 102px auto 80px;

        @include sm-only {
            margin: 32px auto;
        }
    }
}

.NotFoundPage__heading {
    color: $blue-90;
}

.NotFoundPage__copy {
    text-align: center;

    p {
        margin-top: 0;
        margin-bottom: 24px;
    }

    a {
        @include owid-link-90;
        color: inherit;
    }
}

.NotFoundPage__prominent-link-heading {
    @include h5-black-caps;
    color: $blue-90;
    margin: 0 0 16px;
    text-align: center;
}

.NotFoundPage__prominent-link {
    background: $blue-10;
}

.NotFoundPageForm {
    position: relative;
    width: 100%;
    max-width: 412px;
    margin: 8px auto;
}

.NotFoundPageForm__input {
    @include body-3-medium;
    color: $blue-90;
    background: white;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid $blue-20;
    border-radius: 0;
    padding-right: 48px;

    &:focus {
        outline: none;
        border: 1px solid $blue-40;
    }

    &::placeholder {
        color: $blue-50;
    }

    @include sm-only {
        font-size: 16px; // Prevents auto-zoom in iOS Safari.
    }
}

.NotFoundPageForm__button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 48px;
    height: 100%;
    color: $blue-50;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;

    &:hover {
        color: $blue-90;
    }
}

.NotFoundPageForm__reset-button {
    right: 48px;

    &::after {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        height: 26px;
        width: 1px;
        background-color: $blue-20;
    }
}

.NotFoundPageForm__submit-button {
    right: 0;
}

.NotFoundPageIcon {
    margin: 0 auto;

    @include sm-only {
        max-width: 120px;
        height: auto;
    }
}

.variantName {
    margin-left: 3px;
    color: $grey-text-color;
    font-size: 0.9em;
}

.FeedbackForm {
    height: calc(100vh - 155px);
    max-height: 700px;
    transition: opacity 0.25s ease-in-out;

    &.loading > * {
        opacity: 0.5;
    }

    > div.formBody {
        padding: 0.6rem 1rem;
        overflow-y: auto;
        flex-grow: 1;
        display: flex;
        flex-direction: column;

        .formSection {
            margin-bottom: 0.75rem;
            flex: 0;
        }

        .formSectionExpand {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        label {
            font-size: 1rem;
            vertical-align: middle;
            line-height: 2.14286;
            color: #555;
        }

        input,
        textarea {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            outline: none;
            border: 1px solid rgba(0, 0, 0, 0.2);
            border-radius: 1px;
            background-color: #fff;
            padding: 0.4rem 0.7rem;
            width: 100%;
            min-height: 40px;
            box-sizing: border-box;
            vertical-align: middle;
            line-height: 1.28571;
            color: $oxford-blue;
            font-family: inherit;
            font-size: 1rem;

            &:focus {
                border-color: $oxford-blue;
            }
        }

        textarea {
            font-size: 0.875rem;
            flex: 1;
            resize: none;
        }
    }

    .notice,
    .topic-notice {
        @include info;
        font-size: 1rem;
        margin-top: 0;
        padding: 1rem;
        background-color: #f1f1f1;
        .title {
            font-weight: bold;
            margin: 0 0 0.5rem;
            font-size: inherit;
        }
        a {
            @include owid-link-90;
        }
    }

    .topic-notice {
        font-size: 0.875rem;
        border-radius: 0 0 3px 3px;
        padding: 0.5rem 0.75rem;
    }

    > .footer {
        box-shadow: 0 -0.07143rem 0.85714rem rgba(0, 0, 0, 0.08);
        padding: 0.8rem 1rem;
        display: flex;
        justify-content: flex-end;
        text-align: right;

        button {
            margin: 0;
        }
    }

    .doneMessage {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;

        h3 {
            margin: 1rem 0;
        }

        p {
            margin: 1rem 0;
        }

        .icon {
            font-size: 3rem;
            color: rgba($blue-100, 0.45);
        }
    }
}

.CountryProfilePage {
    main {
        margin: auto;
        max-width: 900px;

        header {
            display: flex;
            margin-top: 20px;
            margin-bottom: 20px;

            img.flag {
                max-height: 100px;
                margin-right: 20px;
                outline: 1px solid $gray-10;
            }
        }

        input[type="search"] {
            width: 100%;
            padding: 10px;
        }

        ul {
            li {
                display: flex;
                list-style-type: none;
                border-bottom: 1px solid #c5c9d3;
                font-size: 14px;
            }

            .indicatorName {
                line-height: 32px;
                flex-grow: 1;
            }

            .indicatorValue {
                line-height: 32px;
                text-align: right;
            }
        }
    }
}

.CountriesIndexPage > main {
    ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
        grid-column-gap: 1rem;
        grid-row-gap: 0.25rem;
    }

    li {
        width: 100%;
        list-style-type: none;
        padding-right: 1em;
        font-size: 0.8em;
        max-width: 90vw;
    }

    a {
        display: inline-flex; // Align flag and country name
        align-items: center;
    }

    .flag {
        outline: 1px solid $gray-10;
        width: 16px;
        margin-right: 4px;
    }
}

.FeedbackPage {
    main {
        height: calc(100vh - 100px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .box {
        margin: $vertical-spacing 0;

        @include popover-box-styles;
    }
}
